package org.yunmai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.yunmai.entity.SysDept;
import org.yunmai.mapper.SysDeptMapper;
import org.yunmai.service.SysDeptService;
import org.yunmai.vo.SysDeptVO;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_dept】的数据库操作Service实现
* @createDate 2025-06-03 19:47:41
*/
@Service
public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept>
    implements SysDeptService{

    @Override
    public List<SysDeptVO> getDeptPage(int pageNum, int pageSize, String keyword) {
        int offset = (pageNum - 1) * pageSize;
        return baseMapper.selectDeptPage(offset, pageSize, keyword);
    }
}




